#include <BustaModelGameState.h>
Public Member Functions | |
BustaModelGameState () | |
Constructor. | |
~BustaModelGameState () | |
Destructor. | |
int | getScore () |
Gets score. | |
void | setScore (int s) |
Sets score. | |
void | addCustomer (BustaModelCustomer *c) |
Adds customer. | |
int | removeCustomer (BustaModelCustomer *c) |
Deletes customer. | |
BustaModelCustomer * | getCustomer (int n) |
Gets customer in queue. | |
BustaModelTipJar * | getTipJar () |
Gets tip jar. | |
BustaModelFoodPiece * | getBoard (int i, int j) |
gets Foodpiece in board | |
BustaModelChef * | getChef () |
gets the chef | |
BustaModelCursor * | getCursor () |
Gets cursor. | |
void | setBoard (int i, int j, BustaModelFoodPiece *fp) |
Sets board location to specified foodPiece. | |
void | removeFromBoard (int i, int j) |
Deletes foodpiece on board. |
Model representing entire game state, has score, tipjar, chef, customer queue
|
Constructor. Initializes variables |
|
Destructor. Deletes models |
|
Adds customer. Adds a Customer to the queue, if more than two Customers deletes the oldest one |
|
gets Foodpiece in board Returns a pointer to the FoodPiece in the specified row and column |
|
gets the chef Returns a pointer to the chef |
|
Gets cursor. Returns a pointer to the cursor |
|
Gets customer in queue. Returns a pointer to the customer in the nth location in the queue |
|
Gets score. Gets the score of the player |
|
Gets tip jar. Returns a pointer to the tip jar |
|
Deletes customer. Deletes the specified customer |
|
Deletes foodpiece on board. Deletes the foodpiece in the specified location |
|
Sets board location to specified foodPiece. For specified board location, removes current foodpiece and sets to FoodPiece fp |
|
Sets score. Sets the score of the player |